PDF Plugin for Xojo

PDFDocument.AttachFile Method

Attaches file to the PDF document. This file will not be visible part of the document but will be in the documents file repository.

AttachFile(
   f as FolderItem)

Parameters

f
Reference to the file to attach.

Remarks

Compression must be enabled in the document if you use this feature.

PDFException will be thrown if you try to attach file to document that does not have compression enabled.

InvalidArgument exception will be thrown if the f parameter is directory or invalid in some way.

See Also

PDFDocument Class